package de.kardass.jannobatch.errorhandler;

public class HandledError<Item, T extends Throwable> {

	private final Item item;
	
	private final T exception;
	
	private final ErrorHandlerReturnCode returnCode;

	public HandledError(Item item, T exception, ErrorHandlerReturnCode returnCode) {
	    this.item = item;
	    this.exception = exception;
	    this.returnCode = returnCode;
    }

	public Item getItem() {
    	return item;
    }

	public T getException() {
    	return exception;
    }

	public ErrorHandlerReturnCode getReturnCode() {
    	return returnCode;
    }
	
}
